import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)
export default new Router({
  mode: 'history',
  routes: [
    { path:'/', redirect:'/home'},
    { path:'/home', component:()=>import('components/home/home.vue')},
    { path:'/category', component: ()=>import('components/category/category.vue') },
    { path:'/cart', component: ()=>import('components/cart/cart.vue') },
    { path:'/profile', component: ()=>import('components/profile/profile.vue') },
    { path:'/detail/:iid', component: ()=>import('components/detail/detail.vue')}
  ]
})
